package com.chixing.day10_hashcode_exception.homework;

public class CompanyTest {
    public static void main(String[] args) {
        Company all = new Company();
        Company company1 = new Company(101,"珠海市魅族科技有限公司","民营公司","计算机,通信,网络设备");
        Company company2 = new Company(102,"慧博云通科技股份有限公司","民营公司","计算机,通信,网络设备");
        Company company3 = new Company(103,"中国移动","国企公司","系统,数据服务,维修");
        all.posting(901 ,"Java开发工程师" , 5000 ,  8000 ,"南京" , "本科学历",company1);
        all.posting(902 ,"系统开发工程师" , 4000 ,  9000 ,"南京" , "本科学历",company1);
        all.posting(903 ,"运维工程师" , 3000 ,  5000 ,"南京" , "本科学历",company2);
        all.posting(904 ,"实施工程师" , 6000 ,  8000 ,"南京" , "本科学历",company3);
        //  all.posting(906 ,"Java开发工程师" , 5000 ,  8000 ,"南京" , "本科学历",company1);
        //显示已发布的岗位
        all.show();
        //测试发布相同的岗位
        all.posting(902 ,"系统开发工程师" , 4000 ,  9000 ,"南京" , "本科学历",company1);
        //测试添加超出5个岗位
        all.posting(901 ,"Java开发工程师" , 5000 ,  8000 ,"南京" , "本科学历",company3);
        //查询各公司发布的岗位
        all.selectCitynum(company1);
        all.selectCitynum(company2);
        all.selectCitynum(company3);
        //查询计算机类招聘的岗位存到comPosition[]数组中
        all.selectEducation("计算机");
    }
}
